package com.eol.web.controller.member;

import com.eol.common.annotation.HttpApi;
import com.eol.common.base.BaseResponse;
import com.eol.common.context.BaseContextHandler;
import com.eol.service.member.ZMemberService;
import com.eol.web.utils.AppCommonUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * MemberController
 *
 * @author liulinhui
 * @email 1249055292@qq.com
 * @date 2020/6/1 22:05
 */
@RequestMapping("user")
@RestController
public class MemberController {

    @Resource
    private ZMemberService zMemberService;
    @Resource
    private AppCommonUtils appCommonUtils;

    @RequestMapping("info")
    @HttpApi(name = "获取用户信息")
    public BaseResponse info() {
        return new BaseResponse(appCommonUtils.getMemberInfo());
    }

}
